<template>
  <div class="header">
      <van-nav-bar
  :title="header.tit"
  :left-text="header.user"
  left-arrow
/>
  </div>
</template>
<script>
import { NavBar } from 'vant';
export default {
    data() {
        return {
            header:{
                tit:'许愿墙',
                user:''
            }
        }
    },
    created() {
        if(localStorage.getItem('token')){
            this.header.user=localStorage.getItem('token')
        }
    },
}
</script>
